<?php foreach ($output['tickets'] as $ticket): ?>
    <a href="index.php?act=ticket&op=detail&tid=<?php echo $ticket['tk_id']; ?>">
    <li>
        <div class="commodity-img">
            <img src="<?php echo $ticket['tk_thumb']; ?>" />
        </div>
        <div class="commodity-con">
            <div class="commodity-title"><?php echo $ticket['tk_title']; ?></div>
            <div class="commodity-brief"><?php echo $ticket['tk_subtitle']; ?></div>
            <div class="commodity-grade">
                <i class="iconfont icon-xing"></i>
                <i class="iconfont icon-xing"></i>
                <i class="iconfont icon-xing"></i>
                <i class="iconfont icon-xing"></i>
                <i class="iconfont icon-xing"></i>
            </div>
            <div class="commodity-price">
                <?php list($int, $float) = explode('.',$ticket['tk_show_price']); ?>

                <?php if ($ticket['tk_cate1'] == 2): ?>
                    <b><samp>¥</samp><?php echo $int; ?>.<samp><?php echo $float; ?><label>人均消费</label></samp></b>
                <?php elseif ($ticket['tk_cate2'] == 10): ?>
                    <b><samp>免费畅游</samp></b>
                <?php else: ?>
                    <b><samp>¥</samp><?php echo $int; ?>.<samp><?php echo $float; ?></samp></b><del>¥<?php echo $ticket['tk_market_price']; ?></del>
                <?php endif; ?>

                <div class="commodity-location"><?php echo $ticket['tk_city_name']; ?></div>
            </div>
        </div>
        <div class="clear"></div>
    </li>
    </a>
<?php endforeach; ?>